package com.hujiang.basic.search.model;

import lombok.Data;
import lombok.EqualsAndHashCode;


import java.util.List;
import java.util.Map;

@Data
@EqualsAndHashCode(callSuper = false)
public class HJSearchHit {
    private float score;
    private String id;
    private Map<String, Object> source;
    private Map<String, List<String>> highlight;

    public HJSearchHit(String id, float score, Map<String, Object> source, Map<String, List<String>> highlight) {
        this.source = source;
        this.highlight= highlight;
        this.score = score;
        this.id = id;
    }
}
